import { InfoCircleFilled } from '@ant-design/icons';
import type { ModalFuncProps } from 'antd';
import { Modal } from 'antd';

export const Confirm = (arg: ModalFuncProps) => {
  const defaultProps = {
    centered: true,
    icon: <InfoCircleFilled style={{ color: '#fc3', fontSize: 26 }} />,
    ...arg,
  };

  Modal.confirm(defaultProps);
};
